home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / htmlsample / makefile < prev    next >
Encoding:
Makefile  |  2000-06-23  |  2.9 KB  |  96 lines

  1. #
  2. #    file MakeFile
  3. #    
  4. #    Description:
  5. #    This file contains the MPW Make build commands for creating
  6. #    the HTMLSample application.
  7. #    
  8. #    HTMLSample is an application illustrating how to use the new
  9. #    HTMLRenderingLib services found in Mac OS 9. HTMLRenderingLib
  10. #    is Apple's light-weight HTML rendering engine capable of
  11. #    displaying HTML files.
  12. #
  13. #    by John Montbriand, 1999.
  14. #
  15. #    Copyright: © 1999 by Apple Computer, Inc.
  16. #    all rights reserved.
  17. #    
  18. #    Disclaimer:
  19. #    You may incorporate this sample code into your applications without
  20. #    restriction, though the sample code has been provided "AS IS" and the
  21. #    responsibility for its operation is 100% yours.  However, what you are
  22. #    not permitted to do is to redistribute the source as "DSC Sample Code"
  23. #    after having made changes. If you're going to re-distribute the source,
  24. #    we require that you make it clear in the source that the code was
  25. #    descended from Apple Sample Code, but that you've made changes.
  26. #    
  27. #    Change History (most recent first):
  28. #    10/16/99 created by John Montbriand
  29. #
  30.  
  31. # PPCObjects contains the names of all the powerpc object files
  32. # generated by the C compiler.  We put all the object files in a
  33. # directory called 'obj'
  34. PPCObjects = :obj:HTMLSample.c.ppc ∂
  35.     :obj:History.c.ppc ∂
  36.     :obj:CIconButtons.c.ppc ∂
  37.     :obj:RenderingWindow.c.ppc ∂
  38.     :obj:AboutBox.c.ppc ∂
  39.     :obj:SampleUtils.c.ppc
  40.  
  41. # CCppc contains the C compiler comand we use for compiling
  42. # the source files.
  43. CCppc  = MrC -w 35 -align power -proto strict 
  44.  
  45. # RezFiles contains a list of the rez files used in this build.
  46. RezFiles = HTMLSample.r
  47.  
  48. # Resources contains a list of all the resource and rez files
  49. # used to build the application
  50. Resources = {RezFiles} HTMLSample.rsrc
  51.  
  52. # resources
  53.  
  54. HTMLSample ƒƒ {Resources} {PPCObjects}
  55.     Rez -t "APPL" -i "{RIncludes}" -o HTMLSample {RezFiles}
  56.  
  57. # object code
  58.  
  59. HTMLSample ƒƒ {Resources} {PPCObjects}
  60.     PPCLink -o HTMLSample ∂
  61.         {PPCObjects} ∂
  62.         {SharedLibraries}NavigationLib ∂
  63.         {SharedLibraries}AppearanceLib ∂
  64.         {SharedLibraries}InterfaceLib ∂
  65.         {SharedLibraries}StdCLib ∂
  66.         {SharedLibraries}MathLib ∂
  67.         {SharedLibraries}HTMLRenderingLib ∂
  68.         {PPCLibraries}PPCCRuntime.o ∂
  69.         {PPCLibraries}PPCToolLibs.o ∂
  70.         {PPCLibraries}StdCRuntime.o
  71.  
  72. # bundle
  73.  
  74. HTMLSample ƒƒ {Resources} {PPCObjects}
  75.     SetFile -t APPL -c vTeZ -a iB HTMLSample
  76.  
  77. # source code
  78.  
  79. :obj:HTMLSample.c.ppc ƒ  HTMLSample.c HTMLSample.h RenderingWindow.h SampleUtils.h
  80.     {CCppc} HTMLSample.c -o :obj:HTMLSample.c.ppc
  81.  
  82. :obj:RenderingWindow.c.ppc ƒ  RenderingWindow.c RenderingWindow.h SampleUtils.h  CIconButtons.h History.h
  83.     {CCppc} RenderingWindow.c -o :obj:RenderingWindow.c.ppc
  84.  
  85. :obj:History.c.ppc ƒ  History.c History.h
  86.     {CCppc} History.c -o :obj:History.c.ppc
  87.  
  88. :obj:CIconButtons.c.ppc ƒ  CIconButtons.c CIconButtons.h
  89.     {CCppc} CIconButtons.c -o :obj:CIconButtons.c.ppc
  90.  
  91. :obj:SampleUtils.c.ppc ƒ  SampleUtils.c SampleUtils.h
  92.     {CCppc} SampleUtils.c -o :obj:SampleUtils.c.ppc
  93.  
  94. :obj:AboutBox.c.ppc ƒ  AboutBox.c AboutBox.h
  95.     {CCppc} AboutBox.c -o :obj:AboutBox.c.ppc
  96.